#include <iostream>
#include <memory>
#include "PollServer.hpp"

void Usage(std::string u)
{
    std::cout << "Usage:\n\t" << u << "serverport" << std::endl;
}
int main(int argv, char *argc[])
{
    if (argv != 2)
    {
        Usage(argc[0]);
        exit(USAGE_ERROR);
    }
    uint16_t port = atoi(argc[1]);

    std::unique_ptr<PollServer> uqsv(new PollServer());
    uqsv->InitServer();
    uqsv->Start();
    return 0;
}